<@HomePage title="首页">
<table id="FRAME_CONTENT">
<tr>
<td style="width:350px;padding:30 10 30 50;" valign="top">
<#if Client.anonimous>
	<@form onsubmit="var c=0; $(this).find('.input').each(
		function(){if($.trim($(this).val())=='')c ++;});if(c!=2)return true;
		$(this).find('span:first').text('请填写您的账号和密码,谢谢~');return false">
		<span class="warn"><@warn f="j_login"></@warn></span><br>		
		账号:<@input f="j_username" v=Client.request.getParameter('j_username')/>
		<br><@warn f="j_username"></@warn><br>
		密码:<@input f="j_password" pwd=true/>
		<br><@warn f="j_password"></@warn><br>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<@button>欢迎登陆</@button>
		<@button goto=URL('register')>免费注册</@button>
	</@form>
<#else>
		<br>欢迎您,${Client.user.name} <br><br>
		<@button goto=URL('user/detail')>我的账户</@button> 
		<@button goto=URL('user/lents')>我的出租</@button>  <br><br>
		<@button goto=URL('user/needs')>我的求租</@button> 
		<@button goto=URL('user/contract')>我的合同</@button> <br><br>
		<@button goto=URL('user/logout')>退出</@button> 
</#if>
</td>
<#assign _current_cid_ = Categories.currentCategory.ID/>
<td id="FRAME_BODY" style="padding:30 10 30 10;" >
	<#-- body --> 
	<div class="categories" onmouseover="$once(this).find('div').hoverClass('current')
		.bind('click', function(){var n=$(this);n.onSelected('selected'
		,'${URL('c')}/select/'+n.attr('id').substr(10))})"> <nobr>
	<#list Categories.menu as c>
		<div <#if c.ID==_current_cid_>class="selected"</#if> id="_CateMenu_${c.ID}">
			<strong>${c.label}</strong>
		</div>
	</#list>
	</nobr></div>
	<#include "../../../../page/framework/searcher.ftl"/>
	<@form action="s" class="searcher">
	<table>
	<tr><@_Searcher_City_/> <@_Searcher_Area_/></tr>
	<tr><@_Searcher_Lend_/> <@_Searcher_Deposit_/></tr>
	<tr><@_Searcher_Flags_/><@_Searcher_Keywords_/></tr>
	<tr><th></th><td colspan="3">
		<@button>查出租</@button>
		<@button>查求租</@button>
	</td></tr></table>
	</@form>
</td></tr></table>

</@HomePage>